package git.soulbgm.libreoffice;

/**
 * @author SoulBGM
 * @version 1.0
 * @date 2020/5/20 0:39
 */
public class LibreOfficeTest {

    public static void main(String[] args) {
        String workPath = System.getProperty("user.dir");
        String wordPath = workPath + "/office/1.docx";
        String pptPath = workPath + "/office/2.pptx";
        String excelPath = workPath + "/office/3.xlsx";

        System.out.println(PdfConvert.convertOfficeToPdf(wordPath, wordPath.replaceAll("1.docx", "")));
        System.out.println(PdfConvert.convertOfficeToPdf(pptPath, pptPath.replaceAll("2.pptx", "")));
        System.out.println(PdfConvert.convertOfficeToPdf(excelPath, excelPath.replaceAll("3.xlsx", "")));
    }

}
